<div class="footer">
    <p>Copyright 2018 http://www.dreamphp.com.cn/ All Rights Reserved</p>
</div>

<script src="/static/admin/js/jquery-3.3.1.min.js"></script>
<script src="/static/admin/js/bootstrap.min.js"></script>
<script src="/static/lib/layer/layer.js"></script>
<script src="/static/lib/uedit/ueditor.config.js"></script>
<script src="/static/lib/uedit/ueditor.all.js"></script>
<script>
    $('.list-group-item').each(function () {
        if ($(this).attr('href') == '{$Request.url}') {
            $(this).addClass('active');
            return false;
        }
    });

    $('#loginout').click(function () {
        $.ajax({
            url:"{:url('admin/index/loginout')}",
            type:'post',
            dataType:'json',
            success:function (data) {
                if (data.code == 1) {
                    layer.msg(data.msg, {
                        icon:6,
                        time:2000
                    }, function () {
                        location.href = data.url;
                    });
                }else {
                    layer.open({
                        title:'退出失败！',
                        content:data.msg,
                        skin:'layui-layer-lan',
                        icon:5,
                        anim:6
                    });
                }
            }
        });
        return false;
    });
</script>